From 8037b37752eb7d17b02650e0f6b3115a0e04de1a Mon Sep 17 00:00:00 2001 From: Ewan Mellor Date: Tue, 5 Sep 2006 17:06:01 +0100 Subject: [PATCH] This patch improves error message of xm console command. # xm console Domain-0 Can't specify Domain-0 Signed-off-by: Masaki Kanno --- tools/console/client/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/console/client/main.c b/tools/console/client/main.c index a43ee26463..829d5b2964 100644 --- a/tools/console/client/main.c +++ b/tools/console/client/main.c @@ -220,7 +220,8 @@ int main(int argc, char **argv) user friendly, we'll bail out here since no data will ever show up on domain-0. */ if (domid == 0) { - err(errno, "Could not read tty from store"); + fprintf(stderr, "Can't specify Domain-0\n"); + exit(EINVAL); } /* Wait a little bit for tty to appear. There is a race -- 2.30.2